﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="BSC._Default" %>
<%@ Import Namespace="Ext.Net.Utilities" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<%@ Register src="~/costs/ucCostImport.ascx" tagname="CostImport" tagprefix="mod" %>
<%@ Register src="~/costs/ucRevenues.ascx" tagname="RevImport" tagprefix="mod" %>
<%@ Register src="~/User/ucUsers.ascx" tagname="Users" tagprefix="mod" %>
<%@ Register src="~/report/ucReportPage.ascx" tagname="Report" tagprefix="mod" %>
<%@ Register src="~/danhmuc/donvi/ucDonVi.ascx" tagname="DonVi" tagprefix="mod" %>
<%@ Register src="~/danhmuc/dichvu/ucDichVu.ascx" tagname="DichVu" tagprefix="mod" %>

<link rel='stylesheet' href="content/css/ext.css" type='text/css' media='screen' />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>VNPT - BSC</title>    
<ext:XScript ID="XScript1" runat="server">
    <script type="text/javascript">
        var SRResultInfo = function(rs,msg) {
            var button;
            if (rs == 1) {
                
                button = Ext.MessageBox.INFO;
            }
            else {
                
                button = Ext.MessageBox.ERROR;
            }
            Ext.Msg.show({
                title: 'Thông báo',
                msg: msg,
                buttons: Ext.Msg.OK,
                icon: button,
                cls: 'x-window-dlg',
                width: 300,
                animEl: 'elId'
            }).getDialog().getEl().setStyle('z-index', '999999');
        }
    </script>
</ext:XScript>
</head>
<body>
    <ext:ResourceManager ID="ResourceManager1" runat="server">
        <%--<Listeners>
            <DocumentReady Handler="alignPanels();" />
            <WindowResize Handler="alignPanels();" />
        </Listeners>--%>
    </ext:ResourceManager>
   <ext:Desktop
            ID="MyDesktop" runat="server" BackgroundColor="Black" ShortcutTextColor="White" Wallpaper="Content/images/desktop.jpg" >

            <Listeners>
                <ShortcutClick Handler="var d=#{MyDesktop}.getDesktop(); if(id == 'scTile'){d.tile();}else if(id == 'scCascade'){d.cascade();}" />
            </Listeners>
            
            <StartMenu Width="400" Height="400" ToolsWidth="227" Title="Start Menu">
                <Items>
                    <ext:MenuItem id="mnuDMMain" runat="server" Text="Danh mục" Icon="Table">
                        <Menu>
                            <ext:Menu runat="server" id="mnuDanhMuc">
                            </ext:Menu>
                        </Menu>
                    </ext:MenuItem>
                </Items>
                <ToolItems>
                    <ext:MenuItem Text="Đổi mật khẩu" Icon="Shield">
                        <Listeners>
                            <Click Handler="#{winChangePass}.show()" />
                        </Listeners>
                    </ext:MenuItem>
                    <ext:MenuItem Text="Cấu hình" ID="mnuSysConfig" Icon="ServerWrench">
                        <Listeners>
                            <Click Handler="#{winSysConfig}.show()" />
                        </Listeners>
                    </ext:MenuItem>
                    <ext:MenuItem Text="Logout" Icon="ArrowOutLonger">
                        <DirectEvents>
                            <Click Url="/logout.aspx">
                                <EventMask ShowMask="true" Msg="Good Bye..." MinDelay="1000" />
                            </Click>
                        </DirectEvents>
                    </ext:MenuItem>
                </ToolItems>
            </StartMenu><DirectEvents></DirectEvents>
        </ext:Desktop>
        
        <mod:CostImport ID="importCost" runat="server"/> <%--  import chi phi--%>
        <mod:RevImport ID="importRev" runat="server"/><%--  import doanh thu--%>
        <mod:Report ID="report" runat="server"/><%--  danh sach nguoi dung--%>
        <mod:Users ID="RevImport1" runat="server"/><%--  danh sach nguoi dung--%>
        <mod:DonVi ID="DonVi" runat="server"/><%--  danh sach donvi--%>
        <mod:DichVu ID="DichVu" runat="server"/><%--  danh sach dich vu--%>
        <%--<ext:DesktopWindow ID="wint" runat="server">

                    <AutoLoad Url="costs/fact_cost_import.aspx" Mode="IFrame" >       
                    </AutoLoad>            

        </ext:DesktopWindow>--%>
</body>
</html>